package xworker.deploy;

import java.io.FileInputStream;
import java.util.Properties;

public class XWorkerDeployConfig {
	static Properties p = new Properties();
	static{
		try{
			FileInputStream fin = new FileInputStream("./deploy.properties");
			p.load(fin);
			fin.close();
		}catch(Exception e){
			e.printStackTrace();
		}
	}
	
	
	public static String getUrl(){
		String url = p.getProperty("url");
		if(url == null || "".equals(url)){
			return "http://localhost:9001/";
		}else{
			return url;
		}
	}
}
